package model

import "gorm.io/gorm"

type Good struct {
	gorm.Model
	UserId       int64   `gorm:"type:int;not null;commit:'用户Id'"`
	Title        string  `gorm:"type:varchar(150);not null;commit:'标题'"`
	Zhubo        string  `gorm:"type:varchar(50);not null;commit:'主播'"`
	Price        float32 `gorm:"type:decimal(10,2);not null;commit:'价格'"`
	Image        string  `gorm:"type:varchar(150);not null;commit:'照片'"`
	LikeCount    int     `gorm:"type:int;not null;commit:'点赞数'"`
	CommentId    int64   `gorm:"type:int;not null;commit:'评论Id'"`
	CollectCount int64   `gorm:"type:int;not null;commit:'收藏数'"`
}
